package com.kgcx.schedule.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "organization")
public interface CityClient {
    @GetMapping("city/getCityList")
    List<City> getCityList(@RequestParam Map<String, Object> map);

    @GetMapping("city/getCity")
    City getCity(@RequestParam("kid") Long kid);

    @GetMapping("airport/getAirport")
    Airport getAirport(@RequestParam("kid") Long kid);

    @GetMapping("station/getStation")
    Station getStation(@RequestParam("kid") Long kid);
}
